package com.fastCms.business.bim.manage;

import com.fastCms.business.bim.pojo.po.DeviceGroupAddPO;
import com.fastCms.business.bim.pojo.po.DeviceGroupPO;
import com.fastCms.business.bim.pojo.po.DeviceGroupRelPO;
import com.fastCms.business.bim.pojo.vo.DeviceGroupVO;
import com.fastCms.business.bim.pojo.vo.DeviceInfoVO;
import com.fastCms.business.frame.pojo.PageParam;
import com.fastCms.business.frame.response.ApiResponse;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface DeviceGroupManageService {


    PageInfo<DeviceGroupVO> list(PageParam<DeviceGroupPO> pageParam);

    public ApiResponse<Boolean> saveOrUpdate(DeviceGroupAddPO deviceGroupAddPO);

    public ApiResponse<Boolean> delete(Integer id);

    public ApiResponse<Boolean> relDevice(DeviceGroupRelPO deviceGroupRelPO);

    ApiResponse<List<DeviceInfoVO>> getRelDevices(Integer areaId);

    public ApiResponse<Boolean> delRelDevice(Integer groupId, Integer deviceId);
}
